package architect;

import java.util.Optional;

import static java.lang.System.out;

/**
 * @description: HelloWorld
 * @author: guanxin
 * @date: 2018/10/21 上午10:59
 * @since: JDK 1.8
 */
public class App {
    public static void main(String[] args) {
        String[] a = null;
        String[] arr = Optional.ofNullable(a).orElse(new String[0]);
        out.println(arr.length);
    }
}
